#ifndef PATTERN_H
#define PATTERN_H

#include <QObject>
#include <QString>
#include "globals.h"

struct TimeSignature;

class Pattern : public QObject
{
    Q_OBJECT;
public:
    Pattern();
    const TimeSignature & getTimeSignature();
    void timeSignature(const TimeSignature & time_signature_);
    gl::MidiTime length();
    void load(const QString & file_name);
    void save(const QString & file_name);
    void save(){save(file_name);}

signals:
    void timeSignatureChanged();
private:
    TimeSignature * time_sig_;
    QString file_name;


};

#endif // PATTERN_H
